package chenyuannbl;

public class text04 {
    public static void main(String[] args) {
       AA aa= new AA();
       aa.get().ii();
       AA.BB bb=aa.new BB();//调用方法2
       bb.ii();
    }

}
class AA{
    int p=100;
    private int a=0;
    private void pp(){
        System.out.println("pp被调用");
    }
    class BB{
        int p=10;
        void ii (){
            System.out.println(a);
            pp();
            System.out.println(AA.this.p);
        }
    }
    public BB get(){
        return new BB();//调用方法一
    }
}